package exam.model.entity;

import java.util.Set;

import exam.model.entity.base.TSubQuestionEntityBase;

/**
 * <p>TSubQuestionEntity</p>
 * <p>Table: T_SUB_QUESTION</p>
 * <p>Thể hiện mối quan hệ bảng:
 * {@link TQuestionEntity}
 * {@link TExaminationEntity}
 * {@link TUserEntity}
 * </p>
 * @author Phong
 * @version 09/05/2012
 */
public class TSubQuestionEntity extends TSubQuestionEntityBase {

	// Quan hệ 1-nhiều: T_QUESTION
	protected Set<TQuestionEntity> questions;
	// Quan hệ 1-nhiều: T_EXAMINATION
	protected Set<TExaminationEntity> examinations;
	// Quan hệ nhiều-1: T_USER
	protected TUserEntity userEntity;
	
	// Set/Get questions
	public Set<TQuestionEntity> getQuestions() {
		return questions;
	}
	public void setQuestions(Set<TQuestionEntity> questions) {
		this.questions = questions;
	}
	
	// Set/Get examinations
	public Set<TExaminationEntity> getExaminations() {
		return examinations;
	}
	public void setExaminations(Set<TExaminationEntity> examinations) {
		this.examinations = examinations;
	}
	
	// Set/Get userEntity
	public TUserEntity getUserEntity() {
		return userEntity;
	}
	public void setUserEntity(TUserEntity userEntity) {
		this.userEntity = userEntity;
	}
	
	/**
	 * Constructor
	 * @param subQuestId
	 */
	public TSubQuestionEntity(long subQuestId) {
		this.subQuestId = subQuestId;
	}
	
	/**
	 * Constructor
	 */
	public TSubQuestionEntity() {}

}
